<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .outer {
        width: 1000px;
        height: 900px;
        border: 1px solid red;
      }
      .outer:hover .box {
        width: 100%;
      }
      .box {
        width: 200px;
        height: 100px;
        /* 所有能过渡的属性都应用过渡效果 */
        transition-property: all;
        /* 过渡时间1秒 */
        transition-duration: 5s;
        /* 过渡的延迟, 2秒后才开始执行过渡 */
        /* transition-delay: 2s; */
      }
      .box1 {
        background-color: skyblue;
        transition-timing-function: ease;
      }
      .box2 {
        background-color: pink;
        transition-timing-function: linear;
      }
      .box3 {
        background-color: rgb(235, 135, 228);
        transition-timing-function: steps(20);
      }
      .box4 {
        background-color: rgb(131, 228, 47);
      }
      .box5 {
        background-color: rgb(231, 223, 8);
      }
      .box6 {
        background-color: rgb(156, 67, 73);
      }
      .box7 {
        background-color: rgb(118, 107, 237);
      }
      .box8 {
        background-color: rgb(186, 212, 67);
      }
      .box9 {
        background-color: rgb(175, 229, 60);
      }

    </style>
  </head>
  <body>
    <div class="outer">
      <div class="box box1">transition-timing-function: ease; 慢快慢</div>
      <div class="box box2">transition-timing-function: linear; 均速</div>
      <div class="box box3">transition-timing-function: steps(20); 分20份进行过渡</div>
      <div class="box box4">box4</div>
      <div class="box box5">box5</div>
      <div class="box box6">box6</div>
      <div class="box box7">box7</div>
      <div class="box box8">box8</div>
      <div class="box box9">box9</div>
    </div>
  </body>
</html>
